solve system of differential equations by elimination